<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

  </head>

  <body>

  </body>
  <script>
    /* 
练习一：反向遍历数组里面的每一个元素
 */
    var arr = ['孙悟空', '猪八戒', '沙和尚', '唐僧'];
    for (let index = arr.length - 1; index >= 0; index--) {
      console.log(arr[index])
    }
  </script>

</html>